package com.baizhi.entity;

import java.util.List;

public class Menu {
    private Integer id;
    private String name;
    private String url;
    private Integer mid;
    private List<Menu> menus;

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", mid=" + mid +
                ", menus=" + menus +
                '}';
    }

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Menu(Integer id, String name, String url, Integer mid, List<Menu> menus) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.mid = mid;
        this.menus = menus;
    }

    public Menu() {
    }
}
